﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Configurations
{
    public interface IHtmlDiv
    {
        /// <summary>
        /// 父节点的表序列
        /// </summary>
        string ParentPath { get;}

        /// <summary>
        /// 嵌套层次
        /// </summary>
        int NestLevel { get;}

        /// <summary>
        /// 当前表序列
        /// </summary>
        int DivIndex { get;}


        /// <summary>
        /// id名
        /// </summary>
        string Divid { get;}

        /// <summary>
        /// class名
        /// </summary>
        string Divclass { get;}

        /// <summary>
        /// 表内容
        /// </summary>
        string Content { get;}

        /// <summary>
        /// 纯内容 不包含子嵌套
        /// </summary>
        string Text { get;}

        /// <summary>
        /// 子集合
        /// </summary>
        IHtmlDivCollection Divs { get;}


        /// <summary>
        /// html节点
        /// </summary>
        IHtmlNode HtmlNode { get;}


        /// <summary>
        /// 序列化为布局
        /// </summary>
        /// <returns></returns>
        string Serialize();
    }
}
